<?php include 'heard.htm';?>
<div id="content">
	<div class="container">
		<div class="row">
			<?php include 'left.htm';?>
			<div class="span9">
				<h1 class="page-title">
					<i class="icon-home"></i>
					员工基础信息				
				</h1>
				<div class="widget">
					<div class="widget-header">
						<i class="icon-th-list"></i>
						<h3>信息填写</h3>
					</div> <!-- /widget-header -->
					<div class="widget-content">
						<form name="example" id="example" action="addnew.php" method="post" enctype="multipart/form-data">
	                        <fieldset>
							<div class="control-group warning">
								<label for="inputWarning" class="control-label">员工姓名：</label>
								<div class="controls">
								  <input type="text" id="name" name="name" value="<?php echo $info['name']?>">
								</div>
							 </div>
							 
							 <div class="control-group warning">
								<label for="inputWarning" class="control-label">员工性别：</label>
								<div class="controls">
								  	<select id="sex" name="sex">
								  		<option value="男" <?php if($info['sex']=='男'):echo 'selected';endif;?>>男</option>
								  		<option value="女" <?php if($info['sex']=='女'):echo 'selected';endif;?>>女</option>
								  	</select>
								</div>
							 </div>
							 
							 <div class="control-group warning">
								<label for="inputWarning" class="control-label">员工类型：</label>
								<div class="controls">
								  	<select id="type" name="type">
								  		<option value="1" <?php if($info['type']==1):echo 'selected';endif;?>>普通员工</option>
								  		<option value="2" <?php if($info['type']==2):echo 'selected';endif;?>>验收员</option>
								  	</select>
								</div>
							 </div>
							 
							 
							  <div class="control-group warning">
								<label for="inputWarning" class="control-label">员工手机号：</label>
								<div class="controls">
								  	<input type="text" id="telphone" name="telphone" value="<?php echo $info['telphone']?>">
								</div>
							 </div>
							 
							 
							 
							  <div class="control-group warning">
								<label for="inputWarning" class="control-label">员工编号：</label>
								<div class="controls">
								  	<input type="text" id="p_no" name="p_no" value="<?php echo $info['p_no']?>">
								</div>
							 </div>
							 
							<!--  <div class="control-group warning">
								<label for="inputWarning" class="control-label">员工头像：</label>
								<div class="controls">
								  	<input class="input-file uniform_on" id="fileInput" type="file" name="pic">
								</div>
							 </div> -->
							 <?php if($_SESSION['c_id']==0):?>
							 <div class="control-group">
								<label for="selectError3" class="control-label">所在公司</label>
								<div class="controls">
								  <select id="c_id" name="c_id">
									<option value="0">--选择--</option>
									<?php foreach($data_row as $vl):?>
										<option value="<?php echo $vl['id']?>" <?php if($info['c_id']==$vl['id']): echo 'selected';endif;?>><?php echo $vl['c_name']?></option>
									<?php endforeach;?>
								  </select>
								</div>
							  </div>
							  <?php endif;?>
							  
							  <?php if($info['uid']!='' && $_SESSION['c_id']!= 0):?>
								  <div class="control-group warning">
									<label for="inputWarning" class="control-label">员工信息二维码：</label>
									<div class="controls">
									  	<img src="../temp/<?php echo $info['qr'];?>">
									</div>
								 </div>
							  <?php endif;?>
							  
							  <div class="form-actions">
								<button class="btn btn-primary" type="submit">保存   数据</button>
								 <?php if($info['uid']!='' && $_SESSION['c_id']!= 0):?>
									<button class="btn btn-primary" type="button" onclick="get_stamp(<?php echo $info['uid'];?>);">打印二维码</button>
							  	 <?php endif;?>
							  </div>
							 </fieldset>
							 <input type="hidden" id="upid" name="upid" value="<?php echo $info['uid']?>">
						 </form>
					</div> <!-- /widget-content -->
				</div> <!-- /widget -->
				
				<div class="plan-actions">				
					<a class="btn" href="new.php">返回  列表</a>				
				</div>
				
			</div> <!-- /span9 -->
		</div> <!-- /row -->
	</div> <!-- /container -->
</div> <!-- /content -->
<div id="footer">
	<div class="container">				
		<hr />
		<p>&copy; 2013 Vit System Contol.</p>
	</div> <!-- /container -->
</div> <!-- /footer -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->

<script src="./js/excanvas.min.js"></script>
<script src="./js/jquery.flot.js"></script>
<script src="./js/jquery.flot.pie.js"></script>
<script src="./js/jquery.flot.orderBars.js"></script>
<script src="./js/jquery.flot.resize.js"></script>
<script src="./js/bootstrap.js"></script>
<script src="./js/charts/bar.js"></script>
</body>
</html>
